<?php 
 class Conctato extends Model{
 	
 	function __construct(){
 		parent::Model();
 		$this->load->database(); 
 		
 	}
 	
 	public function loadCompany(){
 		
 		$resurtado  = $this->db->get('compania');
 		return $resurtado;
 		
 	}
 	
    public function loadInbound(){ 
 		
 		$resurtado  = $this->db->get('transacciones_entrada');
 		return $resurtado;
 		
 	}
 	
  public function upDate($array,$where){ 

  	          $this->db->where('IdTransaccion', $where);
        	        if ($this->db->update('transacciones_entrada', $array)){
 		                return true;
  	                }  
 	                else{ 	  
 	                     return false;
 	                }	
 	}
 	
 }

?>